package com.sy.blog.controller;

import com.sy.blog.service.LoginService;
import com.sy.blog.vo.Result;
import com.sy.blog.vo.params.LoginParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("logout")
public class LoginOutController {

    @Autowired
    private LoginService loginService;

    /**
     * 退出登录
     * @param token
     * @return
     */
    @GetMapping
    public Result login(@RequestHeader("Authorization") String token) {
        return loginService.loginOut(token);
    }


}
